<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String base = request.getContextPath();
    request.setAttribute("base", base);
%>

<!-- 领取记录 -->
<c:forEach items="${withdraws}" var="withdraw" varStatus="us">
    <div class="divitem">
        <button style="width:70%;text-align: left;">领取红包${withdraw.withdrawMoney}，扣除菲币${withdraw.withdrawPropConsume}</button>
        <c:if test="${withdraw.status==1}">
            <button style="width:30%;text-align: right;color: #F00;">待审核</button>
        </c:if>
        <c:if test="${withdraw.status==2}">
            <button style="width:30%;text-align: right;color: #F00;">审核中</button>
        </c:if>
        <c:if test="${withdraw.status==4}">
            <button style="width:30%;text-align: right;color: #F00;">审核未通过</button>
        </c:if>
        <c:if test="${withdraw.status==3}">
            <button style="width:30%;text-align: right;">${withdraw.verifyPassDay}</button>
        </c:if>
    </div>
</c:forEach>

<!-- javascript -->
<script>
    $(document).ready(function(){
        //计算显示尺寸
        countRect();
        $(window).resize(function () {
            countRect();
        });
    });

    function countRect () {
        //
        var ww,fsz;
        ww = parseInt ($(window).width());
        fsz = ww * 0.04;
        $('.divitem button').css('font-size', fsz);
    }
</script>